<!DOCTYPE html>
<html lang="zh_cn">
<head>
          <title>来玩魔王的咚</title>
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <meta charset="utf-8" />
        <!-- twitter card metadata -->
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="/images/mowang.png">
<meta name="twitter:site" content="">
<meta name="twitter:title" content="公众号文章">
<meta name="twitter:description" content="<p>草稿</p>">
        <!-- OG Tags -->
<meta property="og:url" content="/drafts/articles-from-weixin.html"/>
<meta property="og:title" content="来玩魔王的咚 | 公众号文章" />
<meta property="og:description" content="<p>草稿</p>" />
        <!-- favicon -->
        <link rel="icon" type="image/png" href="/images/mowang.png">
        <!-- moment.js for date formatting -->
        <script src="/theme/js/moment.js"></script>
        <!-- css -->
        <link rel="stylesheet" type="text/css" href="/theme/css/main.css" />
        <!-- 左边的menu，如果页面高度不够，就跟着滚动，否则文章分类显示不全 -->
        <link rel="stylesheet" type="text/css" href="/theme/css/mycss/menu.css" />
		<script>
			
                /*! grunt-grunticon Stylesheet Loader - v2.1.2 | https://github.com/filamentgroup/grunticon | (c) 2015 Scott Jehl, Filament Group, Inc. | MIT license. */
    
    (function(e){function t(t,n,r,o){"use strict";function a(){for(var e,n=0;u.length>n;n++)u[n].href&&u[n].href.indexOf(t)>-1&&(e=!0);e?i.media=r||"all":setTimeout(a)}var i=e.document.createElement("link"),l=n||e.document.getElementsByTagName("script")[0],u=e.document.styleSheets;return i.rel="stylesheet",i.href=t,i.media="only x",i.onload=o||null,l.parentNode.insertBefore(i,l),a(),i}var n=function(r,o){"use strict";if(r&&3===r.length){var a=e.navigator,i=e.Image,l=!(!document.createElementNS||!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect||!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")||e.opera&&-1===a.userAgent.indexOf("Chrome")||-1!==a.userAgent.indexOf("Series40")),u=new i;u.onerror=function(){n.method="png",n.href=r[2],t(r[2])},u.onload=function(){var e=1===u.width&&1===u.height,a=r[e&&l?0:e?1:2];n.method=e&&l?"svg":e?"datapng":"png",n.href=a,t(a,null,null,o)},u.src="",document.documentElement.className+=" grunticon"}};n.loadCSS=t,e.grunticon=n})(this);(function(e,t){"use strict";var n=t.document,r="grunticon:",o=function(e){if(n.attachEvent?"complete"===n.readyState:"loading"!==n.readyState)e();else{var t=!1;n.addEventListener("readystatechange",function(){t||(t=!0,e())},!1)}},a=function(e){return t.document.querySelector('link[href$="'+e+'"]')},c=function(e){var t,n,o,a,c,i,u={};if(t=e.sheet,!t)return u;n=t.cssRules?t.cssRules:t.rules;for(var l=0;n.length>l;l++)o=n[l].cssText,a=r+n[l].selectorText,c=o.split(");")[0].match(/US\-ASCII\,([^"']+)/),c&&c[1]&&(i=decodeURIComponent(c[1]),u[a]=i);return u},i=function(e){var t,o,a;o="data-grunticon-embed";for(var c in e)if(a=c.slice(r.length),t=n.querySelectorAll(a+"["+o+"]"),t.length)for(var i=0;t.length>i;i++)t[i].innerHTML=e[c],t[i].style.backgroundImage="none",t[i].removeAttribute(o);return t},u=function(t){"svg"===e.method&&o(function(){i(c(a(e.href))),"function"==typeof t&&t()})};e.embedIcons=i,e.getCSS=a,e.getIcons=c,e.ready=o,e.svgLoadedCallback=u,e.embedSVG=u})(grunticon,this);
                
                grunticon(["/theme/css/icons.data.svg.css", "/theme/css/icons.data.png.css", "/theme/css/icons.fallback.css"]);
            </script>
        <noscript><link href="/theme/css/icons.fallback.css" rel="stylesheet"></noscript>
        <!-- menu toggle javascript -->
        <script type="text/javascript">
            document.addEventListener("DOMContentLoaded", initMenu);
            
            function initMenu(){
                var menu = document.getElementById("menu");
                var menulink = document.getElementById("menu-link");
                menulink.addEventListener("click", function toggleMenu(){
                        window.event.preventDefault();
                        menulink.classList.toggle('active');
                        menu.classList.toggle('active');              
                    });
            };
        </script>
        <!-- 不蒜子 -->
        <script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>

    <meta name="description" content="<p>草稿</p>" />

  <!-- 替换部分base的样式，看文章时，要再宽一点，右边有很多空间可以撑开 -->
  <link rel="stylesheet" type="text/css" href="/theme/css/mycss/article.css" />

</head>
<body>
    <div role="banner" id="masthead">
        <header>
            <a href="/"><img src="/images/mowang.png" alt="McManus Logo"></a>
                <h1>来玩魔王的咚@骑士救兵</h1>
            <a href="#menu" id="menu-link">more stuff</a>
            <nav id="menu">
                <ul>
                        <li><a href="/tags">tags</a></li>
                            <li><a href="/category/cloud.html">Cloud</a></li>
                            <li><a href="/category/docker.html">Docker</a></li>
                            <li><a href="/category/go.html">Go</a></li>
                            <li><a href="/category/linux.html">Linux</a></li>
                            <li><a href="/category/python.html">Python</a></li>
                            <li><a href="/category/xue-xi-bi-ji.html">学习笔记</a></li>
                            <li><a href="/category/yun-wei-zi-dong-hua.html">运维自动化</a></li>
                </ul>
            </nav>
        </header>
    </div>
        <div class="page" role="main">
  <div class="article" role="article">
    <article>
        <footer>
            <a name="top"></a>
            <p>
              <time datetime=" 2020-07-03 16:20:00+08:00">
                <script>document.write(moment('2020-07-03 16:20:00+08:00').format('LL'));</script>
              </time>
              ~
              <time datetime=" 2020-07-03 16:20:00+08:00">
                <script>document.write(moment('2020-07-03 16:20:00+08:00').format('LL'));</script>
              </time>
            </p>
        </footer>
        <header>
          <h2>
            公众号文章
          </h2>
        </header>
      <div class="content">
         <h1 id="python-zhi-chan"><a class="toclink" href="#python-zhi-chan">Python之禅</a></h1>
<h2 id="yong-python-lu-yi-ge-web-fu-wu-qi"><a class="toclink" href="#yong-python-lu-yi-ge-web-fu-wu-qi">用 Python 撸一个 Web 服务器</a></h2>
<ol>
<li>https://mp.weixin.qq.com/s/-Lgr-2rqKXt0mU4bxJGXvw</li>
<li>https://mp.weixin.qq.com/s/n0qfNsn9i2DCfRIRsWR0tw</li>
<li>https://mp.weixin.qq.com/s/gXCcBIg-ioSkEs75HlfA6w</li>
<li>https://mp.weixin.qq.com/s/BCqrzEyURxRmED8c8csuYA</li>
<li>https://mp.weixin.qq.com/s/2n6zEsRBWJSdHyEg-eBD7w</li>
<li>https://mp.weixin.qq.com/s/Cy9DtCnN6GrlfNRLj9pLSg</li>
<li>https://mp.weixin.qq.com/s/melVSQ2keM5OC_lNb-ol6w</li>
<li>https://mp.weixin.qq.com/s/f7QHSv4udekf8A_uOeC4LA</li>
</ol>
<h2 id="python-100-li"><a class="toclink" href="#python-100-li">Python 100 例</a></h2>
<p>https://mp.weixin.qq.com/s/JKd1ObeMlEkNHthHSAxgcA</p>
<h2 id="pelican"><a class="toclink" href="#pelican">Pelican</a></h2>
<p>静态博客生成工具的选择：
- Node.js: Hexo
- golang: Hugo
- python: Pelican
    - https://v3u.cn/a_id_100
    - https://www.jianshu.com/p/d80a5cefc128
    - https://www.iloveanan.com/pelicanzhu-ti-xiu-gai.html
    - 主题浏览: http://www.pelicanthemes.com/
    - 英文文档: https://docs.getpelican.com/en/stable/index.html
    - 中文文档: https://pelican-docs-latest-cn.readthedocs.io/zh_CN/latest/quickstart.html</p>
<p>主题：
- brutalist
  - 清爽，风格适合，代码块特色
  - https://github.com/mc-buckets/brutalist/tree/de551620221ec3f1958250adfaffbbc81e9b748c
- nice-blog
  - 左边文章列表，右边分类、标签
  - https://github.com/guilherme-toti/nice-blog/tree/976c8962f20285c1073b05fb418760c9cf668e65
- niu-x2
  - 有中文，可以有很多分页
  - https://github.com/mawenbao/niu-x2/tree/4e045ad67c1974c4dd1ddd98ba943cc6d54500e7</p>
<p>插件：<br>
https://github.com/getpelican/pelican-plugins
加锚点: Headerid</p>
<h1 id="jiao-ben-zhi-jia"><a class="toclink" href="#jiao-ben-zhi-jia">脚本之家</a></h1>
<p>使用Cython：<br>
https://mp.weixin.qq.com/s/VVUvXnPMlxyQxHpCF_dUGA  </p>
<p>在Python里面调用Golang函数：<br>
https://mp.weixin.qq.com/s/Nr454wuQmY_HEKsZb8F1GA  </p>
      </div>
      <div class="back-to-top">
        <a href="/">HOME</a>
        <a href="#top">TOP</a>
      </div>
    </article>
  </div>
<!-- end article -->
<!-- 页面往下滚动一段之后才会显示TOC -->
<script>
  window.onscroll = function() {
    var tocbox = document.getElementsByClassName('toc')[0];
    var osTop = document.documentElement.scrollTop || document.body.scrollTop;
    var osWidth = document.documentElement.scrollWidth || document.body.scrollWidth;
    // console.log(osTop)
    if (osTop>300 && osWidth>865) {
      tocbox.style.display = "block"
    }
    if (osTop<300 || osWidth<865) {
      tocbox.style.display = "none"
    }
  }
</script>
                <footer>
                    <div class="icons">
                    </div>
                    <span id="busuanzi_container_page_pv" style="padding: 10px">本文阅读量<span id="busuanzi_value_page_pv"></span>次</span>
                    <span id="busuanzi_container_site_pv" style="padding: 10px">本站总访问量<span id="busuanzi_value_site_pv"></span>次</span>
                    <span id="busuanzi_container_site_uv" style="padding: 10px">本站总访客数<span id="busuanzi_value_site_uv"></span>人</span>
                    <p>© <script>document.write(moment().format('YYYY'));</script> 749B</p>
                </footer>
        </div>
</body>
</html>